package com.jia.springcloud.service;

import com.jia.springcloud.entities.Payment;
import org.springframework.stereotype.Service;

/**
 * @author 1038940655
 * @create 2021/1/21 23:05
 */


public interface PaymentService {

//    服务降级
    /**
     * 通过id获得付款信息service层
     * @param id
     * @return
     */
    public abstract Payment getPaymentById(Integer id);

    /**
     * 不正常访问，设置3秒延迟
     * @return
     */
    public abstract String paymentInfo_TimeOut();


//    服务熔断
    public abstract String paymentCircuitBreaker(Integer id);

}
